Other Functions

The function msw-free-mem returns the total amount of free global memory that is available in Windows.

The system function takes a command string and an optional state arguments and WinExec's the command string. If the command starts a windows application then the application starts iconified if the state arguments is nil and normal if the argument is t, the default. Thus

(system "clock")
starts up a clock in normal state and
(system "clock" nil)
starts up an iconified clock. The result returned is either t if the exec succeeds or a numerical error code if it fails.

The function msw-win-help provides a minimal interface to the windows WinHelp function. Two arguments are required, a string naming the help file to be used, and a symbol specifying the type of help requested. The symbols help, context, index, key, and quit are currently supported. Context help requires an additional integer argument, and key help requires an additional key string. For example,

(msw-win-help "calc.hlp" 'key "operators")
opens help for the calculator application at the section on operators. No Windows help file for XLISP-STAT is available at this time, but this function provides the necessary hook for using such a file if it becomes available.